"""
基本的GET请求用法
"""
import requests

# 基本用法
# response = requests.get('https://httpbin.org/get')
# print(response.text)

# 带参数的GET请求
# response1 = requests.get('https://httpbin.org/get?name=root&pass=123')
# print(response1.text)

# 带参数的GET请求2
data = {
    'name': 'root',
    'pass': '1234'
}
response1 = requests.get('https://httpbin.org/get', params=data)
print(response1.text)
